const db = require('../utils/DB')
/**
 *  创建错题模型【规则】
 */
var ErrorSchema = db.mongoose.Schema({
    id: {
        type: db.mongoose.Types.ObjectId
    },
    errorAnswer:{
        type: Number
    },
    exerciseId: {
        type: db.mongoose.Types.ObjectId
    },
    studentId: {
        type: db.mongoose.Types.ObjectId
    }
}, {
    versionKey: false
})

//Error Model
var Error = db.mongoose.model('error', ErrorSchema)

module.exports = Error;